
package socialcampx;

import javafx.lang.FX;
import javafx.scene.effect.Effect;
import javafx.scene.effect.Shadow;
import javafx.scene.image.Image;
import javafx.scene.paint.Color;

/** The height of a thumbnail image */ 
package def POST_HEIGHT = 100;

/** The width of a thumbnail image */
package def POST_WIDTH  = 270;

/** The verical space between thumbnail images */
package def POST_VERTICAL_SPACING= 15;

/** The horizontal space between thumbnail images */
package def POST_HORIZONTAL_SPACING= 20;

/** The number of rows of thumbnails to display in the wall view */
package def POST_ROWS = 3;

package def POST_COLS = 4;

/** The initial height of the application stage */
package def STAGE_HEIGHT = 600;

/** The initial width of the application stage */
package def STAGE_WIDTH  = 900;

package def GAP_POST_IMAGE = 20;

package def POST_INFO_HEIGHT = GAP_POST_IMAGE + 60;

/** The background color of the Stage on which the thumbnails are shown */ 
package def STAGE_BACKGROUND_COLOR = Color.BLACK;

package def POST_ALPHA = 0.8;

package def CODEBASE : String = {
    var codebase = FX.getProperty("javafx.application.codebase");
    // If we don't have a codebase defined, or codebase starts with "file:",
    // assume we're running locally and load images from the jar.
    if ( codebase == "" or codebase.startsWith("file:") ) {
        codebase = __DIR__
    }
    codebase
}

package def STAGE_BACKGROUND : Image = Image {
    url: "{CODEBASE}campusparty.jpg"
    backgroundLoading: true
}

package def shadow : Effect = Shadow {

}

package def USER = "lucasa";
package def USER_PASS = "lucashell";

package def UPDATE_TIME:Duration =60s;
